package com.zxj.friend.domain.user.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zxj.common.core.domain.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author zxj2022
 * @date 2025/01/01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_user")
@Schema(name="User对象", description="用户表")
public class User extends BaseEntity implements Serializable {

    /** 串行版本 UID */
    @Serial
    private static final long serialVersionUID = 1L;

    /** 用户 ID */
    @Schema(description = "用户id（主键）")
    @TableId(value = "user_id", type = IdType.ASSIGN_ID)
    private Long userId;

    /** 昵称 */
    @Schema(description = "用户昵称")
    @TableField("nick_name")
    private String nickName;

    /** 头部图像 */
    @Schema(description = "用户头像")
    @TableField("head_image")
    private String headImage;

    /**  */
    @Schema(description = "性别 1: 男  2：女")
    @TableField("sex")
    private Integer sex;

    /** 电话 */
    @Schema(description = "手机号")
    @TableField("phone")
    private String phone;

    /** 验证码 */
    @Schema(description = "验证码")
    @TableField("code")
    private String code;

    /** 电子邮件 */
    @Schema(description = "邮箱")
    @TableField("email")
    private String email;

    /** 微信 */
    @Schema(description = "微信号")
    @TableField("wechat")
    private String wechat;

    /** 学校名称 */
    @Schema(description = "学校")
    @TableField("school_name")
    private String schoolName;

    /** 专业名称 */
    @Schema(description = "专业")
    @TableField("major_name")
    private String majorName;

    /** 介绍 */
    @Schema(description = "个人介绍")
    @TableField("introduce")
    private String introduce;

    /** 地位 */
    @Schema(description = "用户状态0: 拉黑  1：正常")
    @TableField("status")
    private Integer status;
}
